/*
Copyright (C) 2010  Christoph Schnack, Berlin (Germany)

This file is part of Tribuit.

    Tribuit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Tribuit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Tribuit.  If not, see <http://www.gnu.org/licenses/>.
*/
package PictureDescription;

import java.util.Vector;

import javax.swing.ImageIcon;

import GuiTools.GuiTools;

/**
 * @author Christoph Schnack
 *
 */
public class PictureUnit {
	String name,title,titleInfo,section;
	Vector<PictureNameUnit> units;

	public PictureUnit(String nameArg, String titleArg,String titleInfoArg,String sect,Vector<PictureNameUnit> unts){
		name=nameArg;
		title=titleArg;
		titleInfo= titleInfoArg;
		section = sect;
		units = unts;
	}
	public String getName(){ return name;}
	public String getTitle(){ return title;}
	public String getTitleInfo(){ return titleInfo;}
	public String getSection(){ return section;}
	public Vector<PictureNameUnit> getTags(){return units;}
	public boolean hasPictureNameUnits(){ return units.size()>0;}
	public boolean hasTitle(){return(title!=null && !title.equals(""));}
}
